<template>
  <el-card shadow="never">
    <configurationView :config="config"></configurationView>
  </el-card>
</template>
<script setup>
import configurationView from "@/components/configurationView.vue";
import http from "@/api/build";
const config = {
  API: {
    get: http.config_get,
  },
  // 物流公司到货数量
  data: [
    {
      field: "company_name",
      label: "物流公司名称",
      operate: true,
      type: "number",
      required: true,
    },
    {
      field: "total_count",
      label: "总数",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "today_count",
      label: "今日到货",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "last_week_count",
      label: "1周内到货 ",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "last_month_count",
      label: "1月内到货",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "last_year_count",
      label: "1年内到货",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "current_week_count",
      label: "本周",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: " current_month_count",
      label: "本月",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: " current_year_count",
      label: "本年",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "last_year_count",
      label: "1年内到货",
      // operate: true,
      type: "number",
      // required: true,
    },
  
  ],
  // 按物流单号统计
  data1: [
    {
      field: "logistics_number",
      label: " 物流号",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "company_name",
      label: "物流公司名称",
      // operate: true,
      type: "number",
      // required: true,
    },
  ],
  // 按商品名称统计
  data2: [
  {
      field: "按商品名称统计",
      label: "data.commodity_names",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: " commodity_name",
      label: "商品名称",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: " company_name",
      label: "物流公司名称",
      // operate: true,
      type: "number",
      // required: true,
    },
    {
      field: "commodity_names",
      label: "按商品名称统计",
      // operate: true,
      type: "number",
      // required: true,
    },
  ],
  data3: [
  {
      field: "是否有问题",
      label: "is_issue",
      query: [
        {value: 1 , label: '是'},
        {value: 2 , label: '否'}
      ],
      type: "select",
    },
    {
      field: " is_back",
      label: "是否打回",
      query: [
        {value: 1 , label: '是'},
        {value: 2 , label: '否'}
      ],
      type: "select",
    },
    {
      field: " model_type",
      label: "模式",
      query: [
        {value: 1 , label: '读取模式'},
        {value: 2 , label: '自编模式'}
      ],
      type: "select",
    },
    {
      field: " is_used",
      label: "是否使用过",
      query: [
        {value: 1 , label: '是'},
        {value: 2 , label: '否'}
      ],
      type: "select",
    },
    {
      field: "is_ok",
      label: "是否验收完成",
      query: [
        {value: 1 , label: '是'},
        {value: 2 , label: '否'}
      ],
      type: "select",
    },
  ],
};
</script>
<style scoped></style>
